package com.aio.news;

import android.content.Context;
import android.content.SharedPreferences;

public class AioSharedPreferences {

	private final static String settingFile = "aio_settings";
	
	public static void setNightMode(Context mContext,boolean isNight){
		SharedPreferences preferences = mContext.getSharedPreferences(settingFile, 0);
		preferences.edit().putBoolean("night_mode", isNight).commit();
	}
	
	public static boolean getNightMode(Context mContext){
		SharedPreferences preferences = mContext.getSharedPreferences(settingFile, 0);
		return preferences.getBoolean("night_mode", false);
	}
}
